/*
 *
 *  Created on: 2012-12-21
 *      Author: xubingqing
 */


#include "ThreadPool.h"

using namespace Model;

class MultiThread_IO : public IThreadProc
{
private:
	Model::CThreadPool*& 			m_threadPool;				//多线程处理
public:
	MultiThread_IO (CThreadPool*& threadPool):m_threadPool(threadPool) {}
	virtual ~MultiThread_IO () {}
	virtual void Process( int index, void* param,int size ) {}
};

int main ()
{
	CThreadPool* tp = new CThreadPool;
	tp->CreatePool(3, 0, NULL);
	MultiThread_IO* mio = new MultiThread_IO(tp);
	//mio->Producer();
	tp->StopPool();
	delete mio;
	delete tp;
	return 0;
}
